<?php
class Admin_TipsController extends Zend_Controller_Action
{

	/**
     * Initialize the action
     *
     * @return void
     */
    public function init()
    {
    }

    /**
     * The default action
     *
     * Displays the admin dashboard
     *
     * @return void
     */
    public function indexAction()
    {
    	
    	$t = new Model_Tips();
    	$currentPage = $this->_request->getParams();
    	$currentPage = intval($currentPage['page']);
    	
    	$this->view->tips = $t->getTipsOnArea('view_tips',$currentPage);
    	
    	//Page Turning
    	$this->view->page = new Model_Page($t->counts(),$this->_request,$t->get_per_pages());
    	
    }
    
    
}